import QtQuick 1.0

Image {
    id:root
    signal clicked
    signal pressAndHold
    smooth: true
    property alias text : txtId.text


    scale:mouseArea.pressed ? 1.1 : 1

    Text {
        id:txtId
        anchors.centerIn: parent
        color: "white"

    }


    MouseArea
    {
        id:mouseArea
        anchors.fill:parent
        onClicked: {
            parent.clicked()


        }
        onPressAndHold:parent.pressAndHold()



    }

}
